package com.example.lotterysystem.controller.param;

import lombok.Data;

import java.io.Serializable;
@Data
public class PageParam implements Serializable {

    private Integer currentPage = 1;
    private Integer pageSize = 10;

    public Integer offset(){
        return (currentPage - 1) * pageSize;
    }
}
